import request from '@/utils/request'

export function getNews(params) {
  return request({
    url: '/PMSystem/news',
    method: 'get',
    params
  })
}

export function getRate() {
  return request({
    url: '/PMSystem/home_page',
    method: 'get'
  })
}

export function getRateCount() {
  return request({
    url: '/PMSystem/home_page/rateCount',
    method: 'get'
  })
}

export function getNotices() {
  return request({
    url: '/PMSystem/news/notices',
    method: 'get'
  })
}

export function getHomePageData() {
  return request({
    url: 'PMSystem/home_page/statistics',
    method: 'get'
  })
}
